<!DOCTYPE html>
<% include ./head.html%>

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="">
<link href="/boss/css/account/bootstrap.css" type="text/css" rel="stylesheet" media="all">
<link href="/boss/css/account/style.css" type="text/css" rel="stylesheet" media="all">
<link rel="stylesheet" href="/boss/css/account/lightbox.css">
<script type="text/javascript" src="/js/bootstrap-year-calendar.min.js"></script>

<script type="text/javascript" src="/javascript/employee.js"></script>

<style>
    p input{
        background-color: black;
        color: white;
        border: none;
        width: 90%;
        display: inline;
    }

    textarea{
        background-color: black;
        border: none;
        text-align:left;
        width: auto;
    }

    li input{
        background-color: black;
        border: none;
        text-align:center;
    }
    table tr th {
        text-align:center;
    }
    table tr td {
        text-align:center;
    }
    td input{
        background-color: black;
        border: none;
        text-align:center;
        color: white;
    }

    input{
        text-align:center;
    }
    .input-group-addon {
        width: 20%;
    }

    .disableClass {
        background-color: black;;
        color: white;
    }
</style>

<script type="text/javascript">

    $(function() {




        $('#save-event').click(function() {
            saveEvent();
        });
    });


</script>



<div class="modal-content" id="event-modal" style="display: none">
    <div class="modal-header">
        <h4 class="modal-title">
            事件添加
        </h4>
    </div>
    <div class="modal-body">
        <input type="hidden" name="event-index" value="">
        <form class="form-horizontal">
            <div class="form-group">
                <label  class="col-sm-4 control-label" style="color: white">事件类型</label>
                <div class="col-sm-7">
                    <input name="event-name" type="text" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-4 control-label" style="color: white">内容</label>
                <div class="col-sm-7">
                    <input name="event-location" type="text" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-4 control-label" style="color: white">时间</label>
                <div class="col-sm-7">
                    <div class="input-group input-daterange" data-provide="datepicker">
                        <input name="event-start-date" type="text" class="form-control" value="">
                        <span class="input-group-addon">to</span>
                        <input name="event-end-date" type="text" class="form-control" value="">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-primary" id="save-event">
            确定
        </button>
    </div>
</div>


<div class="modal-content">
    <script type="text/javascript">
        $(function(){
            readControle();
        });
        function F_Open_dialog()
        {
            document.getElementById("btn_file").click();
            $("#btn_file").css('display','block');
        }

    </script>


    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"></span></button>
        <h4 class="modal-title">详细信息</h4>
    </div>
    <div class="modal-body modal-spa">
        <div class="about">

            <%   console.log("33333333333333333333333",data)  %>
            <div class="col-md-4 about-left ">
                <img src=<%=  data.url %> "/image/employee/timg.jpg" class="img-responsive"  alt="点击上传图片"  onclick="F_Open_dialog()">
                <input type="file" id="btn_file" style="display:none">
            </div>

            <input style="display: none" id="id"  value= <%=  data.id %> >

            <input style="display: none" id="type"  value= <%=  data.type %> >

            <div class="col-md-8 about-right wthree">
                <h3> 姓名 <span> <%=  data.name %> </span></h3>
                <ul class="address">
                    <li>
                        <ul class="agileits-address-text ">
                            <li><b>员工编号：</b></li>
                            <li> <input  id="employeeUin" style="background-color: black" value=<%=  data.employeeUin %> ></li>
                        </ul>
                    </li>



                    <li>
                        <ul class="agileits-address-text ">
                            <li><b>性别：</b></li>
                            <li> <input  id="sex" style="background-color: black" value=<%=  data.sex %> ></li>
                        </ul>
                    </li>

                    <li>
                        <ul class="agileits-address-text">
                            <li><b>电话：</b></li>
                            <li><input id="phone"  style="background-color: black" value=<%=  data.phone %> ></li>
                        </ul>
                    </li>
                    <li>
                        <ul class="agileits-address-text">
                            <li><b>出生年月：</b></li>
                            <li><input id="birthday"  style="background-color: black" value=<%=  data.birthday %> ></li>
                        </ul>
                    </li>
                    <li>
                        <ul class="agileits-address-text">
                            <li><b>身份证：</b></li>
                            <li><input id="IdCard"  style="background-color: black" value=<%=  data.IdCard %> > </li>
                        </ul>
                    </li>

                    <li>
                        <ul class="agileits-address-text">
                            <li><b>上岗日期：</b></li>
                            <li><input id="onDuty"  style="background-color: black" value=<%=  data.onDuty %> > </li>
                        </ul>
                    </li>

                </ul>
            </div>
            <div class="clearfix"> </div>
            <div class="row about-text agileits-w3layouts">

                <div class="input-group col-md-12">
                    <div class=" input-group-addon" style="width:20%">在院工龄</div>
                    <input  type="text" class=" form-control " id="workYears"  placeholder="请输入信息"  value=<%=  data.workYears %>>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon" style="width:20%" >离岗时间</div>
                    <input type="text" class="form-control" id="outDuty" placeholder="请输入信息"  value=<%=  data.outDuty %>>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">现有住址</div>
                    <input type="text" class="form-control" id="address" placeholder="请输入信息"  value=<%=  data.address %>>

                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">户籍地址</div>
                    <input type="text" class="form-control" id="koseki" placeholder="请输入信息"  value=<%=  data.koseki %>>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">工作史简历</div>
                    <input type="text" class="form-control" id="resume" placeholder="请输入信息"  value=<%=  data.resume %>>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">配偶手机</div>
                    <input type="text" class="form-control" id="matePhone" placeholder="请输入信息"  value=<%=  data.matePhone %>>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">子女手机</div>
                    <input type="text" class="form-control" id="childrenPhone" placeholder="请输入信息"  value=<%=  data.childrenPhone %>>
                </div>
                <div class="input-group col-md-12">
                    <div class="input-group-addon">文化程度</div>
                    <input type="text" class="form-control" id="culture" placeholder="请输入信息"  value=<%=  data.culture %>>
                </div>

                <a class="input-group col-md-12" onclick="showMore()" style="background-color: red;    text-align:center;">
                    <span > 更多</span>
                </a>


                <div class="input-group col-md-12" id="calendarDiv" style="background-color: white;display: none">
                     <div  id="calendar"></div>
                </div>

                <div class="form-group col-md-12" style="margin-top: 5%">
                    <button class="btn btn-primary navbar-right" id="readControle" onclick="readControle()">允许修改</button>
                    <button class="btn btn-primary navbar-right"id="sub"  onclick="updateTaccount()">提交</button>
                </div>


            </div>
        </div>
    </div>
</div>